package javase_class_250910;

/**
 * ClassName: IndexOutExp
 * Package: javase_class_250910
 * Description:
 *
 * @Author harkjeans
 * @Create 2025/9/11 9:31
 * @Version 1.0
 */
public class IndexOutExp {
    public static void main(String[] args) {
        String friends[] = { "lisa", "bily", "kessy" };
        try {
            for (int i = 0; i < 5; i++) {
                System.out.println(friends[i]);
            }
        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("index err");
        }
        System.out.println("\nthis is the end");
    }
}
